package com.easy.dao;

import com.easy.bean.Comment;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentDao {
    int addComment(@Param("comment") Comment comment);
    int editComment(@Param("comment") Comment comment);
    int deleteComment(@Param("id") int id);
    List<Comment> selectComment(@Param("page") Page page, @Param("text") String text);
    Comment getCommentById(@Param("id") int id);
    int CommentCount(@Param("text") String text);
    List<Comment> getCommentByProid(@Param("id") int proid);
}
